package com.ron.provider;

import android.net.ContentURI;
import android.provider.BaseColumns;

public final class Daneel {
	
	public static final String TEXT_CONTAINS_KEY = "TextContains";
	public static final String TEXT_NOT_CONTAINS_KEY = "TextNotContains";
	
	public static final int SUBACTIVITY_SUCEEDED = 0;
	public static final int SUBACTIVITY_CANCELLED = 1;
	
	public static final String SET_FILTER_ACTION = "com.ron.android.daneel.action.SET_FILTER";

	public static final class Notes implements BaseColumns {
		
		public static final String[] DEFAULT_PROJECTION = new String[] {
			Daneel.Notes._ID, 
			Daneel.Notes.TEXT };
		
		public static final ContentURI CONTENT_URI = ContentURI.create( "content://com.ron.provider.Daneel/notes" );
		
		public static final String DEFAULT_SORT_ORDER = "_id DESC";
		
		public static final String _ID = "_id";
		
		public static final String TEXT = "text";
	}
	
	public static final class Tags implements BaseColumns {
		
		public static final ContentURI CONTENT_URI = ContentURI.create( "content://com.ron.provider.Daneel/tags" );
		
		public static final String DEFAULT_SORT_ORDER = "_id DESC";
		
		public static final String _ID = "_id";
		
		public static final String NOTE_ID = "note_id";
		
		public static final String TEXT = "text";
	}
	
}
